package com.gsafety.libraryktx.expand

import android.widget.TextView
import androidx.annotation.DrawableRes
import com.gsafety.library.Exts.Ext
import com.gsafety.library.common.Position

/**
 * 围绕 TextView 指定位置显示图标
 */
inline fun <reified T : TextView> T.draw(@DrawableRes res: Int, position: Position)
{
    Ext.draw(this, res, position)
}

/**
 * 下划线
 */
inline fun <reified T:TextView> T.underLine() = Ext.underLine(this)